package mx.itesm.paint_platoon;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Nivel extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		Button btnnivel1;
		Button btnnivel2;

		super.onCreate(savedInstanceState);
		setContentView(R.layout.nivel);

		btnnivel1 = (Button) findViewById(R.id.btnnivel1);
		btnnivel2 = (Button) findViewById(R.id.btnnivel2);

		btnnivel1.setOnClickListener(new OnClickListener() {
			public void onClick(View view) {
				LanzadorNivelUno();
			}
		});

		btnnivel2.setOnClickListener(new OnClickListener() {
			public void onClick(View view) {
				LanzadorNivelDos();

			}

		});

	}

	private void LanzadorNivelDos() {
		// TODO Auto-generated method stub
		Intent i = new Intent(this, LanzadorNivelUno.class);
		startActivity(i);
	}

	private void LanzadorNivelUno() {
		Intent j = new Intent(this, LanzadorNivelUno.class);
		startActivity(j);
	}

}